package com.jd.org.service;

import com.jd.basic.query.BaseQuery;
import com.jd.org.domain.Department;

import java.util.List;

public interface DepartmentService {
    // 保存
    void save(Department department);

    // 删除
    void remove(Long id);

    // 修改
    void update(Department department);

    // 查询一个
    Department loadById(Long id);

    // 查询所有
    List<Department> loadAll();

    // 分页计算，查询数量总数
    Long queryCount(BaseQuery baseQuery);

    // 分页查询，当前页数据
    List<Department> queryDepartment(BaseQuery baseQuery);

    void patchRemove(List<Long> ids);
}
